﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SyncConfig.Controls;
using AppCommon.Controls;

namespace SyncConfig.Dialog
{
    public partial class BaseDialog : Form
    {
        public BaseDialog()
        {
            InitializeComponent();
        }

        private void panelEx1_ControlAdded(object sender, ControlEventArgs e)
        {
            if (e.Control is UserControlBase)
            {
                if (e.Control.Dock != DockStyle.Fill)
                    e.Control.Dock = DockStyle.Fill;
                if (e.Control.BackColor != Color.Transparent)
                    e.Control.BackColor = Color.Transparent;
            }
        }
    }
}
